import { FormSchema } from '@/components/Form';
import {FormItemRule} from "naive-ui";

export const formSchema: FormSchema[] = [
	{
		field: 'email',
		label: '邮箱',
		component: 'NInput',
		rules: [{ required: true, message: '请输入邮箱', trigger: 'blur' }],
	},
	{
		field: 'realName',
		label: '昵称',
		component: 'NInput',
		rules: [{ required: true, message: '请输入昵称', trigger: 'blur' }],
	},
	{
		field: 'sex',
		label: '性别',
		component: 'NRadioGroup',
		defaultValue: '0',
		componentProps: {
			options: [
				{ label: '女', value: '0' },
				{ label: '男', value: '1' },
			],
		},
	},
	{
		label: '个人简介',
		field: 'desc',
		component: 'NInput',
		componentProps: {
			type: 'textarea',
		},
	},
	{
		label: '联系电话',
		field: 'phone',
		component: 'NInput',
	},
	{
		label: '所在地区',
		field: 'address',
		component: 'NInput',
	},
];
